Micron Document
Fox's Git Mirrors


Commit 719e1b78fee97c9ab666f1bfad2ec27d470103c9


Parents : c3f4a2c
Author : Jiming <71953568+Jiming-C@users.noreply.github.com>
Signature : Signature validation error
Date : 2026-07-11T15:15:23-04:00
Committer : GitHub <noreply@github.com>
Date : 2026-07-11T12:15:23-07:00

car_helpers: compare VIN with != instead of is not (#3524)

Changes

1 files changed, 1 insertions(+), 1 deletions(-)


Diff

diff --git a/opendbc/car/car_helpers.py b/opendbc/car/car_helpers.py
index 21e67adf..2c49194a 100644
--- a/opendbc/car/car_helpers.py
+++ b/opendbc/car/car_helpers.py
@@ -91,7 +91,7 @@ def fingerprint(can_recv: CanRecvCallable, can_send: CanSendCallable, set_obd_mu
start_time = time.monotonic()
if not skip_fw_query:
if cached_params is not None and cached_params.brand != "mock" and len(cached_params.carFw) > 0 and \
- cached_params.carVin is not VIN_UNKNOWN and not disable_fw_cache:
+ cached_params.carVin != VIN_UNKNOWN and not disable_fw_cache:
carlog.warning("Using cached CarParams")
vin_rx_addr, vin_rx_bus, vin = -1, -1, cached_params.carVin
car_fw = list(cached_params.carFw)

Served by rngit 1.5.2 - Generated in 0.03s